export default [
  {
    path: "/admin",
    layout: false,
    routes: [
      {
        path: "/admin",
        redirect: "/admin/login",
      },
      {
        name: "login",
        path: "/admin/login",
        component: "./Admin/Login",
      },
      {
        component: "./404",
      },
    ],
  },
  {
    path: "/dish",
    name: "菜品管理",
    icon: "deploymentUnit",
    access: "PAGE_BANNER",
    routes: [
      {
        path: "/dish/index",
        name: "菜品管理",
        component: "./Dish",
        access: "PAGE_BANNER",
      },
      {
        path: "/dish/time",
        name: "菜品时间管理",
        component: "./Dish/time",
        access: "PAGE_BANNER",
      },
    ],
  },
  // {
  //   path: "/region",
  //   name: "区/街道管理",
  //   icon: "appstore",
  //   component: "./Region",
  //   access: "PAGE_BANNER",
  // },
  {
    path: "/user",
    name: "会员管理",
    icon: "user",
    access: "PAGE_BANNER",
    routes: [
      {
        path: "/user/index",
        name: "会员列表",
        component: "./User",
        access: "PAGE_BANNER",
      },
      {
        path: "/user/leader",
        name: "团长历史记录",
        component: "./User/leader",
        access: "PAGE_BANNER",
      },
    ],
  },

  {
    path: "/order",
    name: "订单管理",
    icon: "moneyCollect",
    access: "PAGE_BANNER",
    routes: [
      {
        path: "/order/index/detail",
        name: "拼团订单",
        component: "./Order/detail",
        access: "PAGE_BANNER",
        hideInMenu: true,
      },

      {
        path: "/order/index",
        name: "全部订单",
        component: "./Order",
        access: "PAGE_BANNER",
      },
      {
        path: "/order/today",
        name: "今日预定",
        component: "./Order/today",
        access: "PAGE_BANNER",
      },
      {
        path: "/order/week",
        name: "周餐",
        component: "./Order/week",
        access: "PAGE_BANNER",
      },
      {
        path: "/order/month",
        name: "月餐",
        component: "./Order/month",
        access: "PAGE_BANNER",
      },
      {
        path: "/order/expire",
        name: "过期周餐/月餐",
        component: "./Order/expire",
        access: "PAGE_BANNER",
      },
      {
        path: "/order/breakfast",
        name: "今日早餐",
        component: "./Order/breakfast",
        access: "PAGE_BANNER",
      },
      {
        path: "/order/lunch",
        name: "今日午餐",
        component: "./Order/lunch",
        access: "PAGE_BANNER",
      },
      {
        path: "/order/dinner",
        name: "今日晚餐",
        component: "./Order/dinner",
        access: "PAGE_BANNER",
      },
    ],
  },

  {
    path: "/",
    redirect: "/home",
  },
  {
    component: "./404",
  },
];
